package com.sun.boostrap.controller;

import com.sun.convert.UserInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @PostMapping("/user/save")
    public String save(UserInfo userInfo) {
        return userInfo.toString();
    }

    @GetMapping("/handler")
    public String test(){
       return "handler";
    }
}